import { sidebar } from "vuepress-theme-hope";

export const zhSidebar = sidebar({
  // 代码笔记的侧边栏
  "/codenotes/": [
    {
      text: "vue",
      icon: "vue",
      collapsible: true,
      prefix: "/codenotes/vue/",
      children: [
        {
          text: "vue2基础",
          icon: "write",
          link: "vue2基础.md",
        },{
          text: "vue自定义指令",
          icon: "write",
          link: "vue自定义指令.md",
        },
      ],
    },
    {
      text: "js",
      icon: "javascript",
      collapsible: true,
      prefix: "/codenotes/js/",
      children: [
        {
          text: "JS基础之数据类型及类型检测",
          icon: "write",
          link: "JS基础之数据类型及类型检测.md",
        },
      ],
    },
    {
      text: "html",
      icon: "html",
      collapsible: true,
      prefix: "/codenotes/framework/",
      children: [""],
    },
    {
      text: "数据库",
      icon: "mysql",
      collapsible: true,
      prefix: "/codenotes/database/",
      children: [""],
    },
    {
      text: "java",
      icon: "tool",
      collapsible: true,
      prefix: "/codenotes/java/",
      children: [
        {
          text:"springboot文件上传下载",
          link:"springboot文件上传下载.md"
        }
      ],
    },
    {
      text: "nest",
      icon: "nest",
      collapsible: true,
      prefix: "/codenotes/nest/",
      children: [
        {
          text: "nest基础",
          icon: "write",
          link: "nest基础.md",
        },
      ],
    },
    {
      text: "算法",
      icon: "algorithm",
      collapsible: true,
      prefix: "/codenotes/algorithm/",
      children: [
        {
          text: "leetcode",
          icon: "leetcode",
          collapsible: true,
          prefix: "/codenotes/algorithm/leetcode",
          children: [
            {
              text: "罗马数字转整数",
              link:"罗马数字转整数.md"
            },
            {
              text: "有效的括号",
              link:"有效的括号.md"
            },
            {
              text: "二进制中1的个数",
              link:"二进制中1的个数.md"
            },
            {
              text: "反转字符串",
              link:"反转字符串.md"
            },
          ],
        },
        {
          text: "翻转单词顺序",
          link:"翻转单词顺序.md"
        },
        {
          text: "火星文计算",
          link:"火星文计算.md"
        },
        {
          text: "投篮大赛",
          link:"投篮大赛.md"
        },
        {
          text: "寻找连续区间",
          link:"寻找连续区间.md"
        },
        {
          text: "找出重复代码",
          link:"找出重复代码.md"
        },
        {
          text: "最差产品奖",
          link:"最差产品奖.md"
        },
        {
          text: "最长的元音字符串",
          link:"最长的元音字符串.md"
        }
      ],
    },
    {
      text: "在线技术文档",
      icon: "read",
      collapsible: true,
      prefix: "/codenotes/cookbook/",
      children: [""],
    },
    {
      text: "其他",
      collapsible: true,
      prefix: "/codenotes/other/",
      children:[
        {
          text: "前端工程化",
          link: "前端工程化.md",
        }
      ],
    },
  ],

  // // 浮生杂记的侧边栏
  // "/floatinglife/": [
  //   {
  //     text: "小镇美食家",
  //     icon: "linter",
  //     collapsible: true,
  //     link: "/floatinglife/cooker/",
  //   },
  //   {
  //     text: "小镇技术宅",
  //     icon: "computer",
  //     collapsible: true,
  //     link: "/floatinglife/iter/",
  //   },
  //   {
  //     text: "小镇运动狂",
  //     icon: "strong",
  //     collapsible: true,
  //     link: "/floatinglife/sporter/",
  //   },
  //   {
  //     text: "小镇思考者",
  //     icon: "style",
  //     collapsible: true,
  //     link: "/floatinglife/thinker/",
  //   },
  // ],

  // // 开源项目的侧边栏
  // "/projects/": [
  //   {
  //     text: "技术教程",
  //     icon: "guide",
  //     collapsible: true,
  //     link: "/projects/techguide/",
  //   },
  //   {
  //     text: "实战项目",
  //     icon: "workingDirectory",
  //     collapsible: true,
  //     link: "/projects/pracprojects/",
  //   },
  //   {
  //     text: "系统设计",
  //     icon: "shell",
  //     collapsible: true,
  //     link: "/projects/systemdesign/",
  //   },
  //   {
  //     text: "工具类库",
  //     icon: "module",
  //     collapsible: true,
  //     link: "/projects/toollibrary/",
  //   },
  // ],
});
